package com.docMan.bean;

import com.docMan.utils.FinalConfig;
import com.docMan.utils.FtpUtils;
import com.docMan.utils.GetRealPath;

public class DeleteFtpFileRunnable implements Runnable {
	private String path;
	private String fileName;

	public DeleteFtpFileRunnable(String path, String fileName) {
		super();
		this.path = path;
		this.fileName = fileName;
	}

	@Override
	public void run() {
		String realPath=GetRealPath.getPath(path)+"/"+fileName;
		FtpUtils.removeFile(FinalConfig.getDocFtp(), realPath);
	}

}
